﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASG.CodeGenerator.SQL.TSQL
{
    public class DatabaseSize
    {
        private uint _Size = 2048, _MaxSize = 2048, _FileGrowth = 1024;
        private bool _Unlimited = false, _PercentGrowth = false;
        private SizeUnits _SizeUnit = SizeUnits.KB, _MaxSizeUnit = SizeUnits.GB, _GrowthUnit = SizeUnits.KB;

        public uint Size
        {
            get { return _Size; }
            set { _Size = value; }
        }

        public uint MaxSize
        {
            get { return _MaxSize; }
            set { _MaxSize = value; }
        }

        public uint FileGrowth
        {
            get { return _FileGrowth; }
            set { _FileGrowth = value; }
        }

        public bool Unlimited
        {
            get { return _Unlimited; }
            set { _Unlimited = value; }
        }

        public bool PercentGrowth
        {
            get { return _PercentGrowth; }
            set { _PercentGrowth = value; }
        }

        public SizeUnits SizeUnit
        {
            get { return _SizeUnit; }
            set { _SizeUnit = value; }
        }

        public SizeUnits MaxSizeUnit
        {
            get { return _MaxSizeUnit; }
            set { _MaxSizeUnit = value; }
        }

        public SizeUnits GrowthUnit
        {
            get { return _GrowthUnit; }
            set { _GrowthUnit = value; }
        }
    }
}
